function [pMI_Mean_Dist] = pMI_Mean_Dist_One_Animal_One_Dose(Placeness_MetaData, drug, animalID, session)

for n=1:size(Placeness_MetaData,2)
    if strcmp(Placeness_MetaData(n).drug, drug) && strcmp(Placeness_MetaData(n).animalName, animalID) && strcmp(Placeness_MetaData(n).session, session)
        pMI_Dist(n,:)=Placeness_MetaData(n).MI_pvalues_proportion;
    end
end
for n=1:size(pMI_Dist,1)
    if max(pMI_Dist(n,:))==0
        pMI_Dist(n,:)=nan;
    end
end
for n = 1:size(pMI_Dist,2)
    pMI_Mean_Dist(1,n) = mean(pMI_Dist(:,n), 'omitnan');
end

end